package com.wwwarehouse.taskcenter.bean.job_point;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Jackie on 2017/11/2.
 * 子作业点 点信息请求实例
 */

public class PointResponseBean implements Parcelable {

    /**
     * itemName : name12
     * locationUkid : 1
     */

    private String itemName;
    private String locationUkid;
    private boolean isSelect;

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getLocationUkid() {
        return locationUkid;
    }

    public void setLocationUkid(String locationUkid) {
        this.locationUkid = locationUkid;
    }

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.itemName);
        dest.writeString(this.locationUkid);
        dest.writeByte(this.isSelect ? (byte) 1 : (byte) 0);
    }

    public PointResponseBean() {
    }

    protected PointResponseBean(Parcel in) {
        this.itemName = in.readString();
        this.locationUkid = in.readString();
        this.isSelect = in.readByte() != 0;
    }

    public static final Creator<PointResponseBean> CREATOR = new Creator<PointResponseBean>() {
        @Override
        public PointResponseBean createFromParcel(Parcel source) {
            return new PointResponseBean(source);
        }

        @Override
        public PointResponseBean[] newArray(int size) {
            return new PointResponseBean[size];
        }
    };
}
